package com.team.student.exception;

public class MyException extends Exception{
    public String message;
    public Throwable throwable;

    public MyException(String message, Throwable throwable) {
        this.message = message;
        this.throwable = throwable;
    }

    public MyException(String message, String message1, Throwable throwable) {
        super(message);
        this.message = message1;
        this.throwable = throwable;
    }

    public MyException(String message, Throwable cause, String message1, Throwable throwable) {
        super(message, cause);
        this.message = message1;
        this.throwable = throwable;
    }

    public MyException(Throwable cause, String message, Throwable throwable) {
        super(cause);
        this.message = message;
        this.throwable = throwable;
    }

    public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String message1, Throwable throwable) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.message = message1;
        this.throwable = throwable;
    }
}
